package merchant_admin_users

// 表名也是cache的tag
var TableName = "merchant_admin_users"

// 管理用户表
type MerchantAdminUsers struct {
	Id          int64  `xorm:"pk autoincr"`
	Email       string `xorm:"varchar(64) notnull unique 'email'"`
	Username    string `xorm:"varchar(64) notnull 'username'"`
	Password    string `xorm:"varchar(64) notnull 'password'"`
	SecPassword string `xorm:"varchar(64) notnull 'sec_password'"`

	Remark string `xorm:"varchar(64) null 'remark'"`

	RegisterTime  int64  `xorm:"int notnull 'register_time'"`
	RegisterIp    string `xorm:"char(15) notnull 'register_ip'"`
	LastLoginTime int64  `xorm:"int null 'last_login_time'"`
	LastLoginIp   string `xorm:"char(15) null 'last_login_ip'"`

	AddAdminId int64 `xorm:"int null default(0) 'add_admin_id'"`

	Status bool `xorm:"BOOL default(false) 'status'"`
}
